﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using IM.Net;

namespace IM
{
    class Program
    {
        static void Main(string[] args)
        {
            IMServer server = new IMServer();
            Console.WriteLine("start server...");
            if (!server.Initialize())
            {
                System.Console.WriteLine("start server initialize failed\n");
                return;
            }
            server.StartServer();
            UseControl();
            System.Console.ReadKey();
        }

        static void UseControl()
        {
            Console.WriteLine("<<<<<<<<<<<<<<<<<<< IM Server >>>>>>>>>>>>>>>>>");
            Console.WriteLine("<<<                 1. reload config");
            Console.WriteLine("<<<                 2. print statistic");
            Console.WriteLine("<<<                 3. stop server");
        }
    }
}
